<?php

/**
 * ApplicationCorporateManaged filter form base class.
 *
 * @package    digitalform
 * @subpackage filter
 * @author     Saul Santiago
 * @version    SVN: $Id: sfDoctrineFormFilterGeneratedTemplate.php 29570 2010-05-21 14:49:47Z Kris.Wallsmith $
 */
abstract class BaseApplicationCorporateManagedFormFilter extends BaseFormFilterDoctrine
{
  public function setup()
  {
    $this->setWidgets(array(
      'ref_number'                                             => new sfWidgetFormFilterInput(array('with_empty' => false)),
      'company_name'                                           => new sfWidgetFormFilterInput(array('with_empty' => false)),
      'business_address'                                       => new sfWidgetFormFilterInput(array('with_empty' => false)),
      'business_brgy_municipality_town'                        => new sfWidgetFormFilterInput(array('with_empty' => false)),
      'business_city_province'                                 => new sfWidgetFormFilterInput(array('with_empty' => false)),
      'business_postal_code_zip_code'                          => new sfWidgetFormFilterInput(),
      'number_of_employees'                                    => new sfWidgetFormChoice(array('choices' => array('' => '', '1-50' => '1-50', '51-100' => '51-100', '101-200' => '101-200', '201-500' => '201-500', '501-1,000' => '501-1,000', '1,001 & UP' => '1,001 & UP'))),
      'nature_of_business'                                     => new sfWidgetFormChoice(array('choices' => array('' => '', 'GOVERNMENT' => 'GOVERNMENT', 'BPO/CALL CENTER' => 'BPO/CALL CENTER', 'HOLDINGS COMPANY' => 'HOLDINGS COMPANY', 'POWER & UTILITIES' => 'POWER & UTILITIES', 'PETROLEUM' => 'PETROLEUM', 'INSURANCE' => 'INSURANCE', 'BANKING' => 'BANKING', 'LOGISTICS' => 'LOGISTICS', 'TRANSPORT & FREIGHT' => 'TRANSPORT & FREIGHT', 'RETAIL' => 'RETAIL', 'HOTELS & RESORTS' => 'HOTELS & RESORTS', 'MANUFACTURING' => 'MANUFACTURING', 'SEMICON & ELECTRONICS' => 'SEMICON & ELECTRONICS', 'PHARMACEUTICALS' => 'PHARMACEUTICALS', 'GLOBAL SERVICE PROVIDER' => 'GLOBAL SERVICE PROVIDER', 'LOCAL TELCO/ISP' => 'LOCAL TELCO/ISP', 'MEDIA' => 'MEDIA'))),
      'latest_ranking_of_company'                              => new sfWidgetFormChoice(array('choices' => array('' => '', 'Top 50' => 'Top 50', 'Top 100' => 'Top 100', 'Top 250' => 'Top 250', 'Top 500' => 'Top 500', 'Top 1,000' => 'Top 1,000', 'Beyond 1,000' => 'Beyond 1,000'))),
      'sector'                                                 => new sfWidgetFormFilterInput(),
      'number_of_lines_applied_for'                            => new sfWidgetFormFilterInput(array('with_empty' => false)),
      'authorized_corporate_officer_signatory1'                => new sfWidgetFormFilterInput(array('with_empty' => false)),
      'authorized_corporate_officer_signatory1_position'       => new sfWidgetFormFilterInput(),
      'authorized_corporate_officer_signatory1_contact_number' => new sfWidgetFormFilterInput(),
      'authorized_corporate_officer_signatory1_email_address'  => new sfWidgetFormFilterInput(),
      'authorized_corporate_officer_signatory2'                => new sfWidgetFormFilterInput(),
      'authorized_corporate_officer_signatory2_position'       => new sfWidgetFormFilterInput(),
      'authorized_corporate_officer_signatory2_contact_number' => new sfWidgetFormFilterInput(),
      'authorized_corporate_officer_signatory2_email_address'  => new sfWidgetFormFilterInput(),
      'after_sales_signatory_ies1'                             => new sfWidgetFormFilterInput(array('with_empty' => false)),
      'after_sales_signatory_ies1_position'                    => new sfWidgetFormFilterInput(),
      'after_sales_signatory_ies1_contact_number'              => new sfWidgetFormFilterInput(),
      'after_sales_signatory_ies1_email_address'               => new sfWidgetFormFilterInput(),
      'authorized_corporate_officer_signatory3'                => new sfWidgetFormFilterInput(),
      'authorized_corporate_officer_signatory3_position'       => new sfWidgetFormFilterInput(),
      'authorized_corporate_officer_signatory3_contact_number' => new sfWidgetFormFilterInput(),
      'authorized_corporate_officer_signatory3_email_address'  => new sfWidgetFormFilterInput(),
      'vat'                                                    => new sfWidgetFormChoice(array('choices' => array('' => 'yes or no', 1 => 'yes', 0 => 'no'))),
      'vat_bir_certificate_account_number'                     => new sfWidgetFormFilterInput(),
      'oct'                                                    => new sfWidgetFormChoice(array('choices' => array('' => 'yes or no', 1 => 'yes', 0 => 'no'))),
      'oct_bir_certificate_account_number'                     => new sfWidgetFormFilterInput(),
      'corporate_managed_bills_sent_to'                        => new sfWidgetFormChoice(array('choices' => array('' => '', 'ONE RECIPIENT' => 'ONE RECIPIENT', 'ASSIGNEES' => 'ASSIGNEES'))),
      'bill_recipient_company_name'                            => new sfWidgetFormFilterInput(),
      'bill_recipient_attention'                               => new sfWidgetFormFilterInput(),
      'bill_recipient_unit_number_floor'                       => new sfWidgetFormFilterInput(),
      'bill_recipient_department'                              => new sfWidgetFormFilterInput(),
      'bill_recipient_building_street'                         => new sfWidgetFormFilterInput(),
      'receive_bill_summary'                                   => new sfWidgetFormChoice(array('choices' => array('' => 'yes or no', 1 => 'yes', 0 => 'no'))),
      'bill_soft_copy_to_email_address'                        => new sfWidgetFormChoice(array('choices' => array('' => 'yes or no', 1 => 'yes', 0 => 'no'))),
      'bill_hard_copy_to_business_address'                     => new sfWidgetFormChoice(array('choices' => array('' => 'yes or no', 1 => 'yes', 0 => 'no'))),
      'bill_summary_contact_name'                              => new sfWidgetFormFilterInput(),
      'bill_summary_contact_number'                            => new sfWidgetFormFilterInput(),
      'bill_summary_type'                                      => new sfWidgetFormChoice(array('choices' => array('' => '', 'ONE SUMMARY FOR COMPANY' => 'ONE SUMMARY FOR COMPANY', 'BREAKDOWN PER DEPARTMENT' => 'BREAKDOWN PER DEPARTMENT'))),
      'breakdown_department1'                                  => new sfWidgetFormFilterInput(),
      'breakdown_department1_contact_name_number'              => new sfWidgetFormFilterInput(),
      'breakdown_department1_bill_cut_off'                     => new sfWidgetFormFilterInput(),
      'breakdown_department1_corporate_id'                     => new sfWidgetFormFilterInput(),
      'breakdown_department2'                                  => new sfWidgetFormFilterInput(),
      'breakdown_department2_contact_name_number'              => new sfWidgetFormFilterInput(),
      'breakdown_department2_bill_cut_off'                     => new sfWidgetFormFilterInput(),
      'breakdown_department2_corporate_id'                     => new sfWidgetFormFilterInput(),
      'breakdown_department3'                                  => new sfWidgetFormFilterInput(),
      'breakdown_department3_contact_name_number'              => new sfWidgetFormFilterInput(),
      'breakdown_department3_bill_cut_off'                     => new sfWidgetFormFilterInput(),
      'breakdown_department3_corporate_id'                     => new sfWidgetFormFilterInput(),
      'breakdown_department4'                                  => new sfWidgetFormFilterInput(),
      'breakdown_department4_contact_name_number'              => new sfWidgetFormFilterInput(),
      'breakdown_department4_bill_cut_off'                     => new sfWidgetFormFilterInput(),
      'breakdown_department4_corporate_id'                     => new sfWidgetFormFilterInput(),
      'breakdown_department5'                                  => new sfWidgetFormFilterInput(),
      'breakdown_department5_contact_name_number'              => new sfWidgetFormFilterInput(),
      'breakdown_department5_bill_cut_off'                     => new sfWidgetFormFilterInput(),
      'breakdown_department5_corporate_id'                     => new sfWidgetFormFilterInput(),
      'corporate_code'                                         => new sfWidgetFormFilterInput(),
      'bulk_service'                                           => new sfWidgetFormFilterInput(),
      'max_authorized_recipients'                              => new sfWidgetFormFilterInput(),
      'distribution_type'                                      => new sfWidgetFormChoice(array('choices' => array('' => '', 'EQUAL' => 'EQUAL', 'PRIORITIZATION' => 'PRIORITIZATION'))),
      'nominated_postpaid_charging_account'                    => new sfWidgetFormFilterInput(),
      'corporate_id'                                           => new sfWidgetFormFilterInput(),
      'status'                                                 => new sfWidgetFormChoice(array('choices' => array('' => '', 'COMPLETION' => 'COMPLETION', 'PROCESSING' => 'PROCESSING', 'ACTIVATED' => 'ACTIVATED'))),
      'deleted'                                                => new sfWidgetFormChoice(array('choices' => array('' => 'yes or no', 1 => 'yes', 0 => 'no'))),
      'created_at'                                             => new sfWidgetFormFilterDate(array('from_date' => new sfWidgetFormDate(), 'to_date' => new sfWidgetFormDate(), 'with_empty' => false)),
      'updated_at'                                             => new sfWidgetFormFilterDate(array('from_date' => new sfWidgetFormDate(), 'to_date' => new sfWidgetFormDate(), 'with_empty' => false)),
    ));

    $this->setValidators(array(
      'ref_number'                                             => new sfValidatorPass(array('required' => false)),
      'company_name'                                           => new sfValidatorPass(array('required' => false)),
      'business_address'                                       => new sfValidatorPass(array('required' => false)),
      'business_brgy_municipality_town'                        => new sfValidatorPass(array('required' => false)),
      'business_city_province'                                 => new sfValidatorPass(array('required' => false)),
      'business_postal_code_zip_code'                          => new sfValidatorPass(array('required' => false)),
      'number_of_employees'                                    => new sfValidatorChoice(array('required' => false, 'choices' => array('1-50' => '1-50', '51-100' => '51-100', '101-200' => '101-200', '201-500' => '201-500', '501-1,000' => '501-1,000', '1,001 & UP' => '1,001 & UP'))),
      'nature_of_business'                                     => new sfValidatorChoice(array('required' => false, 'choices' => array('GOVERNMENT' => 'GOVERNMENT', 'BPO/CALL CENTER' => 'BPO/CALL CENTER', 'HOLDINGS COMPANY' => 'HOLDINGS COMPANY', 'POWER & UTILITIES' => 'POWER & UTILITIES', 'PETROLEUM' => 'PETROLEUM', 'INSURANCE' => 'INSURANCE', 'BANKING' => 'BANKING', 'LOGISTICS' => 'LOGISTICS', 'TRANSPORT & FREIGHT' => 'TRANSPORT & FREIGHT', 'RETAIL' => 'RETAIL', 'HOTELS & RESORTS' => 'HOTELS & RESORTS', 'MANUFACTURING' => 'MANUFACTURING', 'SEMICON & ELECTRONICS' => 'SEMICON & ELECTRONICS', 'PHARMACEUTICALS' => 'PHARMACEUTICALS', 'GLOBAL SERVICE PROVIDER' => 'GLOBAL SERVICE PROVIDER', 'LOCAL TELCO/ISP' => 'LOCAL TELCO/ISP', 'MEDIA' => 'MEDIA'))),
      'latest_ranking_of_company'                              => new sfValidatorChoice(array('required' => false, 'choices' => array('Top 50' => 'Top 50', 'Top 100' => 'Top 100', 'Top 250' => 'Top 250', 'Top 500' => 'Top 500', 'Top 1,000' => 'Top 1,000', 'Beyond 1,000' => 'Beyond 1,000'))),
      'sector'                                                 => new sfValidatorPass(array('required' => false)),
      'number_of_lines_applied_for'                            => new sfValidatorSchemaFilter('text', new sfValidatorInteger(array('required' => false))),
      'authorized_corporate_officer_signatory1'                => new sfValidatorPass(array('required' => false)),
      'authorized_corporate_officer_signatory1_position'       => new sfValidatorPass(array('required' => false)),
      'authorized_corporate_officer_signatory1_contact_number' => new sfValidatorPass(array('required' => false)),
      'authorized_corporate_officer_signatory1_email_address'  => new sfValidatorPass(array('required' => false)),
      'authorized_corporate_officer_signatory2'                => new sfValidatorPass(array('required' => false)),
      'authorized_corporate_officer_signatory2_position'       => new sfValidatorPass(array('required' => false)),
      'authorized_corporate_officer_signatory2_contact_number' => new sfValidatorPass(array('required' => false)),
      'authorized_corporate_officer_signatory2_email_address'  => new sfValidatorPass(array('required' => false)),
      'after_sales_signatory_ies1'                             => new sfValidatorPass(array('required' => false)),
      'after_sales_signatory_ies1_position'                    => new sfValidatorPass(array('required' => false)),
      'after_sales_signatory_ies1_contact_number'              => new sfValidatorPass(array('required' => false)),
      'after_sales_signatory_ies1_email_address'               => new sfValidatorPass(array('required' => false)),
      'authorized_corporate_officer_signatory3'                => new sfValidatorPass(array('required' => false)),
      'authorized_corporate_officer_signatory3_position'       => new sfValidatorPass(array('required' => false)),
      'authorized_corporate_officer_signatory3_contact_number' => new sfValidatorPass(array('required' => false)),
      'authorized_corporate_officer_signatory3_email_address'  => new sfValidatorPass(array('required' => false)),
      'vat'                                                    => new sfValidatorChoice(array('required' => false, 'choices' => array('', 1, 0))),
      'vat_bir_certificate_account_number'                     => new sfValidatorPass(array('required' => false)),
      'oct'                                                    => new sfValidatorChoice(array('required' => false, 'choices' => array('', 1, 0))),
      'oct_bir_certificate_account_number'                     => new sfValidatorPass(array('required' => false)),
      'corporate_managed_bills_sent_to'                        => new sfValidatorChoice(array('required' => false, 'choices' => array('ONE RECIPIENT' => 'ONE RECIPIENT', 'ASSIGNEES' => 'ASSIGNEES'))),
      'bill_recipient_company_name'                            => new sfValidatorPass(array('required' => false)),
      'bill_recipient_attention'                               => new sfValidatorPass(array('required' => false)),
      'bill_recipient_unit_number_floor'                       => new sfValidatorPass(array('required' => false)),
      'bill_recipient_department'                              => new sfValidatorPass(array('required' => false)),
      'bill_recipient_building_street'                         => new sfValidatorPass(array('required' => false)),
      'receive_bill_summary'                                   => new sfValidatorChoice(array('required' => false, 'choices' => array('', 1, 0))),
      'bill_soft_copy_to_email_address'                        => new sfValidatorChoice(array('required' => false, 'choices' => array('', 1, 0))),
      'bill_hard_copy_to_business_address'                     => new sfValidatorChoice(array('required' => false, 'choices' => array('', 1, 0))),
      'bill_summary_contact_name'                              => new sfValidatorPass(array('required' => false)),
      'bill_summary_contact_number'                            => new sfValidatorPass(array('required' => false)),
      'bill_summary_type'                                      => new sfValidatorChoice(array('required' => false, 'choices' => array('ONE SUMMARY FOR COMPANY' => 'ONE SUMMARY FOR COMPANY', 'BREAKDOWN PER DEPARTMENT' => 'BREAKDOWN PER DEPARTMENT'))),
      'breakdown_department1'                                  => new sfValidatorPass(array('required' => false)),
      'breakdown_department1_contact_name_number'              => new sfValidatorPass(array('required' => false)),
      'breakdown_department1_bill_cut_off'                     => new sfValidatorPass(array('required' => false)),
      'breakdown_department1_corporate_id'                     => new sfValidatorPass(array('required' => false)),
      'breakdown_department2'                                  => new sfValidatorPass(array('required' => false)),
      'breakdown_department2_contact_name_number'              => new sfValidatorPass(array('required' => false)),
      'breakdown_department2_bill_cut_off'                     => new sfValidatorPass(array('required' => false)),
      'breakdown_department2_corporate_id'                     => new sfValidatorPass(array('required' => false)),
      'breakdown_department3'                                  => new sfValidatorPass(array('required' => false)),
      'breakdown_department3_contact_name_number'              => new sfValidatorPass(array('required' => false)),
      'breakdown_department3_bill_cut_off'                     => new sfValidatorPass(array('required' => false)),
      'breakdown_department3_corporate_id'                     => new sfValidatorPass(array('required' => false)),
      'breakdown_department4'                                  => new sfValidatorPass(array('required' => false)),
      'breakdown_department4_contact_name_number'              => new sfValidatorPass(array('required' => false)),
      'breakdown_department4_bill_cut_off'                     => new sfValidatorPass(array('required' => false)),
      'breakdown_department4_corporate_id'                     => new sfValidatorPass(array('required' => false)),
      'breakdown_department5'                                  => new sfValidatorPass(array('required' => false)),
      'breakdown_department5_contact_name_number'              => new sfValidatorPass(array('required' => false)),
      'breakdown_department5_bill_cut_off'                     => new sfValidatorPass(array('required' => false)),
      'breakdown_department5_corporate_id'                     => new sfValidatorPass(array('required' => false)),
      'corporate_code'                                         => new sfValidatorPass(array('required' => false)),
      'bulk_service'                                           => new sfValidatorPass(array('required' => false)),
      'max_authorized_recipients'                              => new sfValidatorSchemaFilter('text', new sfValidatorInteger(array('required' => false))),
      'distribution_type'                                      => new sfValidatorChoice(array('required' => false, 'choices' => array('EQUAL' => 'EQUAL', 'PRIORITIZATION' => 'PRIORITIZATION'))),
      'nominated_postpaid_charging_account'                    => new sfValidatorPass(array('required' => false)),
      'corporate_id'                                           => new sfValidatorPass(array('required' => false)),
      'status'                                                 => new sfValidatorChoice(array('required' => false, 'choices' => array('COMPLETION' => 'COMPLETION', 'PROCESSING' => 'PROCESSING', 'ACTIVATED' => 'ACTIVATED'))),
      'deleted'                                                => new sfValidatorChoice(array('required' => false, 'choices' => array('', 1, 0))),
      'created_at'                                             => new sfValidatorDateRange(array('required' => false, 'from_date' => new sfValidatorDateTime(array('required' => false, 'datetime_output' => 'Y-m-d 00:00:00')), 'to_date' => new sfValidatorDateTime(array('required' => false, 'datetime_output' => 'Y-m-d 23:59:59')))),
      'updated_at'                                             => new sfValidatorDateRange(array('required' => false, 'from_date' => new sfValidatorDateTime(array('required' => false, 'datetime_output' => 'Y-m-d 00:00:00')), 'to_date' => new sfValidatorDateTime(array('required' => false, 'datetime_output' => 'Y-m-d 23:59:59')))),
    ));

    $this->widgetSchema->setNameFormat('application_corporate_managed_filters[%s]');

    $this->errorSchema = new sfValidatorErrorSchema($this->validatorSchema);

    $this->setupInheritance();

    parent::setup();
  }

  public function getModelName()
  {
    return 'ApplicationCorporateManaged';
  }

  public function getFields()
  {
    return array(
      'id'                                                     => 'Number',
      'ref_number'                                             => 'Text',
      'company_name'                                           => 'Text',
      'business_address'                                       => 'Text',
      'business_brgy_municipality_town'                        => 'Text',
      'business_city_province'                                 => 'Text',
      'business_postal_code_zip_code'                          => 'Text',
      'number_of_employees'                                    => 'Enum',
      'nature_of_business'                                     => 'Enum',
      'latest_ranking_of_company'                              => 'Enum',
      'sector'                                                 => 'Text',
      'number_of_lines_applied_for'                            => 'Number',
      'authorized_corporate_officer_signatory1'                => 'Text',
      'authorized_corporate_officer_signatory1_position'       => 'Text',
      'authorized_corporate_officer_signatory1_contact_number' => 'Text',
      'authorized_corporate_officer_signatory1_email_address'  => 'Text',
      'authorized_corporate_officer_signatory2'                => 'Text',
      'authorized_corporate_officer_signatory2_position'       => 'Text',
      'authorized_corporate_officer_signatory2_contact_number' => 'Text',
      'authorized_corporate_officer_signatory2_email_address'  => 'Text',
      'after_sales_signatory_ies1'                             => 'Text',
      'after_sales_signatory_ies1_position'                    => 'Text',
      'after_sales_signatory_ies1_contact_number'              => 'Text',
      'after_sales_signatory_ies1_email_address'               => 'Text',
      'authorized_corporate_officer_signatory3'                => 'Text',
      'authorized_corporate_officer_signatory3_position'       => 'Text',
      'authorized_corporate_officer_signatory3_contact_number' => 'Text',
      'authorized_corporate_officer_signatory3_email_address'  => 'Text',
      'vat'                                                    => 'Boolean',
      'vat_bir_certificate_account_number'                     => 'Text',
      'oct'                                                    => 'Boolean',
      'oct_bir_certificate_account_number'                     => 'Text',
      'corporate_managed_bills_sent_to'                        => 'Enum',
      'bill_recipient_company_name'                            => 'Text',
      'bill_recipient_attention'                               => 'Text',
      'bill_recipient_unit_number_floor'                       => 'Text',
      'bill_recipient_department'                              => 'Text',
      'bill_recipient_building_street'                         => 'Text',
      'receive_bill_summary'                                   => 'Boolean',
      'bill_soft_copy_to_email_address'                        => 'Boolean',
      'bill_hard_copy_to_business_address'                     => 'Boolean',
      'bill_summary_contact_name'                              => 'Text',
      'bill_summary_contact_number'                            => 'Text',
      'bill_summary_type'                                      => 'Enum',
      'breakdown_department1'                                  => 'Text',
      'breakdown_department1_contact_name_number'              => 'Text',
      'breakdown_department1_bill_cut_off'                     => 'Text',
      'breakdown_department1_corporate_id'                     => 'Text',
      'breakdown_department2'                                  => 'Text',
      'breakdown_department2_contact_name_number'              => 'Text',
      'breakdown_department2_bill_cut_off'                     => 'Text',
      'breakdown_department2_corporate_id'                     => 'Text',
      'breakdown_department3'                                  => 'Text',
      'breakdown_department3_contact_name_number'              => 'Text',
      'breakdown_department3_bill_cut_off'                     => 'Text',
      'breakdown_department3_corporate_id'                     => 'Text',
      'breakdown_department4'                                  => 'Text',
      'breakdown_department4_contact_name_number'              => 'Text',
      'breakdown_department4_bill_cut_off'                     => 'Text',
      'breakdown_department4_corporate_id'                     => 'Text',
      'breakdown_department5'                                  => 'Text',
      'breakdown_department5_contact_name_number'              => 'Text',
      'breakdown_department5_bill_cut_off'                     => 'Text',
      'breakdown_department5_corporate_id'                     => 'Text',
      'corporate_code'                                         => 'Text',
      'bulk_service'                                           => 'Text',
      'max_authorized_recipients'                              => 'Number',
      'distribution_type'                                      => 'Enum',
      'nominated_postpaid_charging_account'                    => 'Text',
      'corporate_id'                                           => 'Text',
      'status'                                                 => 'Enum',
      'deleted'                                                => 'Boolean',
      'created_at'                                             => 'Date',
      'updated_at'                                             => 'Date',
    );
  }
}
